/*
 *英才会硕信息科技有限公司拥有本软件的版权，拥有本软件版权2025   并保留所有权利。
 *Copyright 2021,YCHS Information&Science Technology Co.,Ltd,
 *All rights reserved.
 */
package com.ychs.lawyerback01.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 *登录请求
 * 问题？@notBlank @notEmpty @notNull
 * * @author xuehongjin
 * @version 1.0
 * @date 2025/8/7
 */
@Data
public class LoginReqDTO {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 5,max = 10,message = "用户名的长度是5-10位")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,15}$",message = "密码由字母数字组成的8-15位")
    private String password;
}
